package certification.sections.session11.cap14;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class Client {
	
	public static void main(String[] args) throws MalformedURLException, RemoteException, NotBoundException {
		TransferObject c = (TransferObject)Naming.lookup("rmi://localhost/to");
		int r = c.getCodigo();
		System.out.println(r);
		
		
	}

}
